<template>
  <el-card shadow="hover" class="notice-panel">
    <template #header>
      <div class="card-header">通知公告</div>
    </template>
    <el-table :data="notices" border style="width: 100%">
      <el-table-column prop="content" label="公告内容" />
      <el-table-column prop="time" label="接收时间" />
    </el-table>
  </el-card>
</template>

<script setup>
defineProps({
  notices: {
    type: Array,
    required: true
  }
})
</script>

<style scoped>
.notice-panel {
  height: 100%;
}
.card-header {
  font-weight: bold;
}
</style>